public class Rotate {
    public static void main(String[] args) {

    }
    public static void roate(int[] nums, int k) {
        for (int i = 0; i < k; i++) {
            int n = nums[nums.length-1];
            for (int j = nums.length-1; j > 0; j--) {
                nums[j] = nums[j-1];
            }
            nums[0] = n;
        }
    }
}
